package blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jjpzh
 * @since 2023-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Login implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uname;

    private Integer uid;

    private String ip;
    private String address;

    //自动填充
     @TableField(fill = FieldFill.INSERT, value = "create_time")
    private LocalDateTime createTime;

    public Login() {
    }


    public Login(Integer uid,String uname, String ip, String address) {
        this.uname = uname;
        this.uid = uid;
        this.ip = ip;
        this.address = address;
    }


}
